package com.dd.cloud.user.req.order;

import com.dd.cloud.common.annotate.validation.Addr;
import com.dd.cloud.common.annotate.validation.Name;
import com.dd.cloud.common.annotate.validation.Phone;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Description: // 未支付订单重新支付req
 * @ClassName: PayUnOrderReq
 * @Author: czg
 * @Date: 2022/11/22 17:00
 * @Version: 1.0     // 版本
 */
@Data
public class PayUnOrderReq {
    /**
     * 收费产品类型表
     */
    @NotBlank(message = "订单编号不能为空")
    private String orderNo;

    /**
     * 支付类型 WX_H5 WX_JSAPI WX_NATIVE
     */
    @NotBlank(message = "支付类型 WX_H5 WX_JSAPI WX_NATIVE")
    private String payType;

    /**
     * 微信用户openId jsapi支付时需要,
     */
    private String openId;

    /**
     * 应用来源, 默认公众号wx, 如果是小程序, 值为wx_applet
     */
    private String apply = "wx";

    /**
     * 修改地址信息 0否 1是
     */
    private Integer updateAddr = 0;

    /**
     * 收货人
     */
    @Name(begin = "收件人", required = false)
    private String receiver;

    /**
     * 手机号
     */
    @Phone(required = false)
    private String mobileNumber;

    /**
     * 收货地址
     */
    @Addr(begin = "收件地址", required = false)
    private String addr;

    /**
     * 省份
     */
    @Name(begin = "省份", required = false)
    private String province;

    /**
     * 城市
     */
    @Name(begin = "城市", required = false)
    private String city;

    /**
     * 区
     */
    @Name(begin = "区", required = false)
    private String district;

    /**
     * 应付金额
     */
    private Integer totalFee;

    /**
     * 物流费
     */
    private Integer expensesFee;

    /**
     * 处方编号
     */
    private String tencode;
}
